/*
 * Copyright (c) 2020.版权所有高金磊
 */

package 领扣算法.A简单题.矩形重叠;

public class Main {

    public boolean isRectangleOverlap(int[] rec1, int[] rec2) {
        return !((rec2[0]>=rec1[2])||(rec2[2]<=rec1[0])||(rec2[1]>=rec1[3])||(rec2[3]<=rec1[1]));
    }
}
